package admin

import "time"

type AdminGroupStruct struct {
	Id        uint      `json:"id" gorm:"type:int(10) unsigned auto_increment; NOT NULL; primary_key"`
	Name      string    `json:"name" gorm:"type:varchar(100); COMMENT:'组名'"`
	Rules     string    `json:"rules" gorm:"type:text; NOT NULL; COMMENT:'规则ID'"`
	Status    int       `json:"status" gorm:"type:tinyint(1);  COMMENT:'状态'"`
	CreatedAt time.Time `json:"created_at" gorm:"type:datetime"`
	UpdatedAt time.Time `json:"updated_at" gorm:"type:datetime"`
}

func (c *AdminGroupStruct) TableName() string {
	return "admin_group"
}
